package com.neo.impatient.C04_MapTuple.C04_01_construction

object C04_01_construction {


  def main(args: Array[String]): Unit = {


    println("'->' 操作符来构建Map")

    println("构建不可变Map")
    val scores = Map("alice" -> 10, "bob" -> 3, "Cindy" -> 8)
    println(scores)

    println("构建可变Map")

    val scores1 = scala.collection.mutable.Map("alice" -> 10, "bob" -> 3, "Cindy" -> 8)

    println(scores1)


    println("也可以用其他方式来构建")

    val scores2 = Map(("ok", 4), ("ha", 5), ("ni", 6))

    println(scores2)
  }

}
